import request from "@/utils/http";

export const getModuleListPage=(params)=>{
  return request({
    url:'/module/get',
    params
  })
}


// 添加角色
export const addData = (data)=>{
  console.log(data)
  return request({
    url:'/module/Post',
    method:'post',
    data
  })
}
// 编辑角色
export const editData = (data)=>{
  return request({
    url:'/module/Put',
    method:'put',
    data
  })
}
// 删除角色数据
export const delData = (params)=>{
  return request({
    url:'/module/Delete',
    method:"delete",
    params
  })
}